package com.s13.string;

public class Main {
	
	public static void main(String[] args) {
		// 主串
		String str = "baddef";
		// 模式串
		String findStr = "def";
		
		boolean isFind = BruteForce.isFind(str, findStr);
		if (isFind) {
			System.out.println("is's pair!");
		} else {
			System.out.println("not find");
		}
		
		isFind = RabinKarp.isFind(str, findStr);
		if (isFind) {
			System.out.println("is's pair!");
		} else {
			System.out.println("not find");
		}
	}

}
